Progress

Function

This API is used to set parameter for Storage > Disk page.

Request Message

None.

Sample:

POST /API/StorageConfig/Disk/Format/Progress HTTP/1.1
{
    "version": "1.0",
    "data": {}
}

Response Message

Parameter Description

Table 1

ParameterRangeTypeDescription
hdd_idint arrayDisk serial number
hdd_format_stateFormatting
Ok
stringHard drive status
hdd_format_percent0~100intFormat Progress
hdd_format_infojson arrayHddFormat Info Object, see Table 2 for detailed information

Table 2

NetHdd Object

ParameterRangeTypeDescription
hdd_idInthdd id
hdd_format_resultIdle
Ok
InvalidParam
NoExist
HwError
Failed
Oversized
stringFormat Result
/* Format Not Started /
/
Success /
/
Illegal Parameter /
/
No Hard Disk /
/
Hardware Error /
/
Failure /
/
Excessive Mount Capacity*/

Sample:

HTTP/1.1 200 OK
Content-Type: application/json
{
    "result": "success",
    "data": {
        "hdd_id": 1,
        "hdd_format_state": "Formatting",
        "hdd_format_percent": 12
    }
}

Error Code

See Response Messages Body and Common error_code for more information.